import { useGlobalParametersStore } from '@/store/modules/globalParameters';

export const cardList = (() => {
  const result: any[] = [];
  for (let i = 0; i < 12; i++) {
    result.push({
      title: 'Vben Admin',
      icon: 'logos:vue',
      color: '#1890ff',
      active: '100',
      new: '1,799',
      download: 'bx:bx-download',
    });
  }
  return result;
})();
/**
 * 模拟参数
 */
export const globalParametersData = (() => {
  const arr: any = [];
  for (let index = 0; index < 5; index++) {
    arr.push({
      name: 'name' + `${index}`,
      value: `${index + 10}`,
      type: index % 2 == 1 ? 'header' : 'query',
    });
  }
  // 查询本地缓存
  const globalParametersStore = useGlobalParametersStore();
  const globalParametersList = globalParametersStore.getGlobalParametersList;
  console.log(globalParametersList);
  return globalParametersList;
})();
